package com.qf;

import com.codingapi.txlcn.tc.config.EnableDistributedTransaction;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.endpoint.invoke.ParameterValueMapper;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author sunyamei
 * @version V1.0
 * @Project javase2203
 * @Package com.qf
 * @Description:
 * @Date 2022/8/17 10:58
 */
@SpringBootApplication
@MapperScan("com.qf.mapper")
//开启分布式事务lcn的使用
public class AApplication {


    public static void main(String[] args) {
        SpringApplication.run(AApplication.class, args);
    }

    /**
     * 对restTemplated对象初始化
     * @return
     */
    @Bean
    public RestTemplate restTemplate(){
        return  new RestTemplate();
    }
}
